package com.ccs.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//@RestController
@Controller
public class IndexController {
    @ResponseBody
    @RequestMapping("/index1")
    public Object index1(){
        return "/index.html";
    }

    @RequestMapping("/index2")
    public Object index2(){
        return "/index.html";
    }
}
